//
//  AfanStatus.swift
//  weibo
//
//  Created by afan on 16/3/27.
//  Copyright © 2016年 阿范. All rights reserved.
//

import UIKit

class AfanStatus: NSObject {
    // 微博创建时间
    var created_at: String?
    
    // 微博ID
    var id: Int64 = 0
    
    // 微博信息内容
    var text: String?
    
    // 微博来源
    var source: String?
    
    // 微博配图
    var pic_urls: [[String: AnyObject]]?
    
    // 转发数
    var reposts_count: Int = 0
    
    // 评论数
    var comments_count: Int = 0
    
    // 表态数
    var attitudes_count: Int = 0
    
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    // 对象打印
    override var description: String {
        // 只读计算型属性
        let keys = ["created_at", "id", "text", "source", "pic_urls", "reposts_count", "comments_count", "attitudes_count"]
        
        return "\n \t微博模型: \(dictionaryWithValuesForKeys(keys).description)"
        //        get {
        //        }
    }
}






















